package com.sgb.kjwl.view.ui.adapter.self.publish;

import android.content.Context;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.user.AttrEntity;
import com.sgb.kjwl.model.entity.user.DeviceTypeEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class DeviceArrAdapter extends BaseRecycleAdapter<AttrEntity<List<AttrEntity>>> {

    public DeviceArrAdapter(Context context, List<AttrEntity<List<AttrEntity>>> datas) {
        super(context, R.layout.item_device_publish_type, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, final AttrEntity<List<AttrEntity>> entity) {
        holder.setBinding(BR.viewModel, entity);
    }

}
